package platform_api.Repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import platform_api.Model.CityInfo;

import java.util.List;

public interface CityInfoRepository extends CrudRepository<CityInfo, Integer> {
    @Query(value = "select id,name from city_info", nativeQuery = true)
    List<CityInfo> getAllCityInfo();
}